<?php
class ContractDataVo extends SzAbstractMySqlVo
{

    private $userId;
    private $session;
    private $point;
    private $nowPoint;
    private $level;
    private $createTime;
    private $updateTime;
    private $endTime;

    /**
     * Initialize ContractDataVo.
     *
     * @param $userId
     * @param $session
     * @param $point
     * @param $nowPoint
     * @param $level
     * @param $createTime
     * @param $updateTime
     * @param $endTime
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return ContractDataVo
     */
    public function __construct($userId, $session, $point, $nowPoint, $level, $createTime, $updateTime, $endTime, $isInsert = false) {
        $this->userId = $userId;
        $this->session = $session;
        $this->point = $point;
        $this->nowPoint = $nowPoint;
        $this->level = $level;
        $this->createTime = $createTime;
        $this->updateTime = $updateTime;
        $this->endTime = $endTime;

        $this->isInsert = $isInsert;
        $this->voClassName = 'ContractDataVo';
        $this->ormName = 'ContractData';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'session' => $this->getSession(),
            'point' => $this->getPoint(),
            'nowPoint' => $this->getNowPoint(),
            'level' => $this->getLevel(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
            'endTime' => $this->getEndTime(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'session' => $this->getSession(),
            'point' => $this->getPoint(),
            'nowPoint' => $this->getNowPoint(),
            'level' => $this->getLevel(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
            'endTime' => $this->getEndTime(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getSession(),
            $this->getPoint(),
            $this->getNowPoint(),
            $this->getLevel(),
            $this->getCreateTime(),
            $this->getUpdateTime(),
            $this->getEndTime(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getSession()
    {
        return $this->session;
    }

    public function setSession($val)
    {
        $this->saveColumnStatus(1, $this->session);
        $this->session = $val;
    }

    public function getPoint()
    {
        return $this->point;
    }

    public function setPoint($val)
    {
        $this->saveColumnStatus(2, $this->point);
        $this->point = $val;
    }

    public function getNowPoint()
    {
        return $this->nowPoint;
    }

    public function setNowPoint($val)
    {
        $this->saveColumnStatus(3, $this->nowPoint);
        $this->nowPoint = $val;
    }

    public function getLevel()
    {
        return $this->level;
    }

    public function setLevel($val)
    {
        $this->saveColumnStatus(4, $this->level);
        $this->level = $val;
    }

    public function getCreateTime()
    {
        return $this->createTime;
    }

    public function setCreateTime($val)
    {
        $this->saveColumnStatus(5, $this->createTime);
        $this->createTime = $val;
    }

    public function getUpdateTime()
    {
        return $this->updateTime;
    }

    public function setUpdateTime($val)
    {
        $this->saveColumnStatus(6, $this->updateTime);
        $this->updateTime = $val;
    }

    public function getEndTime()
    {
        return $this->endTime;
    }

    public function setEndTime($val)
    {
        $this->saveColumnStatus(7, $this->endTime);
        $this->endTime = $val;
    }

}